#include "classes.hpp"
#include <cstdlib>
#include "mem.hpp"
using namespace std;


int main (){
  //system("clear");
  /* 
  dirmem();
  humain *h[4];
  
  cout<<"new commercant"<<endl;
  h[0] = new commercant("marchand", 35); 
  cout<<"fin du new commercant"<<endl;
  
  h[0]-> dire_bonjour();
  cout<<"dire bonjour commercant"<<endl;
  h[0] -> boire(); 
  cout<<"boire de commercant"<<endl;
  
  h[1] = new yakuza("yaku le noir", 42, "jus d'orange", "war");
  cout<<"new yakuza"<<endl;
  
  h[1]-> dire_bonjour();
  cout<<"dire bonjour yakuza"<<endl;
  h[1] -> action(h[0]);   // extorque le commerçant
  cout<<"action yakuza"<<endl;
  
  h[2] = new ronin("roro", 61, "jus de pomme"); 
  cout<<"new ronin"<<endl;
  h[2] -> donner(10, h[0]); // donner 10 euros au commercant
  cout<<"donner de ronin vers commercant"<<endl;
  h[2] -> action(h[1]); // provoquer le yakuza
  cout<<"action de ronin"<<endl;
  h[2] -> dire_bonjour();
  cout<<"dire bonjour de ronin"<<endl;
  */
 
 
  grille g;
 
  cout<<"1"<<endl;
  // g->planet[3][3]= new commercant("Commercant test", 45);
  // g->planet[3][4]=new yakuza("Yakuza test", 50, "Fanta", "Les Nuls");
  // cout<<"2"<<endl;
 
  g.affiche_grille();
  cout<<"2"<<endl;
  g.modif_grille();
  cout<<"3"<<endl;
  g.affiche_grille();
  /* 
  dirmem();
  delete h[0];
  dirmem();
  */
return 0; 
}
